/refund
Request body:
| Field | Type | Required | Format / constraints |
|---|---|---|---|
documentID | integer (int64) | No | Internal document id |
documentExtID | string | No | External document id |
docTime | string | No | yyyy-MM-dd HH:mm:ss |
docNumber | string | No | External document number |
employeeName | string | No | Cashier name |
employeeFirstName | string | No | Used when employeeName is empty |
employeeLastName | string | No | Used when employeeName is empty |
items | array of item objects | Yes | Must be non-empty |
payments | object | No | Payment split object |
extraPayments | array of extra payment objects | No | Additional payment entries; also splits one refund between several payments of the same type — see §7.14 |
parentDocID | string | No | Original sale fiscal id; alias: parentFiscalID |
parentDocNum | string | No | Original sale fiscal number; alias: parentFiscalNum |
extraParams | object (string → string) | No | Extra fields stored on the document and passed to the fiscal core as-is |
genPreview | boolean | No | If true, requests a fiscal receipt preview (see preview_data in the response) |
documentExtID is schema-optional but strongly recommended for every request, same as for /sale — see §12.1.
Success response: same field set and value rules as /sale.
[!NOTE] Notes:
/refunddoes not support document-level fieldsdiscount,discountPrc,discountName.